﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Admin_Default2 : System.Web.UI.Page
{
    public string url = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        url = "../admin/MGSInfo.aspx?id1=" + Request.QueryString["id"] + "&type1=" + Request.QueryString["type"] + ",'','height=300,width=300,top=150,left=320,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no,directories=no";
        //<input type=\"button\" id=\"btn1\" value=\"{0}\" class=\"nvinput\" onclick=\"window.open('../bgData/SheetGS.aspx?para=gs&id=" + HttpUtility.UrlEncode(dt.Rows[i]["ID_KEY"].ToString()) + "','','height=300,width=300,top=150,left=320,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no,directories=no')\"></td>", "查 看");
                
        string js = @"<Script language='JavaScript'>
                    window.open ('" + url + @"') ;                 
                    window.opener=null;
                    window.close();
                  </Script>";
        Response.Write(js);
        Response.End();
    }
}
